/*
 * @Description: 数字交易所-模块路由
 * @Author: cuixu
 * @Date: 2025-03-10
 * @LastEditors: xinqiao lxq1990.0716@qq.com
 * @LastEditTime: 2025-06-16
 */

export default [
  // 需求管理
  {
    path: '/requirement',
    name: 'requirement',
    component: () => import('/@/layouts/layoutMenu.vue'),
    children: [
      // 需求大厅
      {
        path: 'list',
        name: 'list',
        component: () => import('/@/views/main/exchange/requirement/list.vue'),
      },
      {
        path: 'create',
        name: 'create',
        component: () => import('/@/views/main/exchange/requirement/create.vue'),
      },
      {
        path: 'detail',
        name: 'detail',
        component: () => import('/@/views/main/exchange/requirement/detail.vue'),
      },
      // 需求单
      {
        path: 'form-list',
        name: 'form-list',
        component: () => import('/@/views/main/exchange/requirement/formList.vue'),
      },
      {
        path: 'form-detail',
        name: 'form-detail',
        component: () => import('/@/views/main/exchange/requirement/formDetail.vue'),
      },
      // 参与需求
      {
        path: 'attend-list',
        name: 'attend-list',
        component: () => import('/@/views/main/exchange/requirement/attendList.vue'),
      },
      {
        path: 'attend-detail',
        name: 'attend-detail',
        component: () => import('/@/views/main/exchange/requirement/attendDetail.vue'),
      },
    ],
  },
  // 资讯管理
  {
    path: '/information',
    name: 'bigShot',
    component: () => import('/@/layouts/layoutMenu.vue'),
    children: [
      // 大咖列表
      {
        path: 'big-shot-list',
        name: 'big-shot-list',
        component: () => import('/@/views/main/exchange/bigShot/list.vue'),
      },
      // 评论管理
      {
        path: 'comment-list',
        name: 'information-comment-list',
        component: () => import('/@/views/main/exchange/comment/list.vue'),
      },
    ],
  },
  // 标签管理
  {
    path: '/tag-manager',
    name: 'tag-manager',
    component: () => import('/@/layouts/layoutMenu.vue'),
    redirect: '/tag-manager/list',
    children: [
      {
        path: 'list',
        name: 'tag-manager-list',
        component: () => import('/@/views/main/exchange/tag-manage/list.vue'),
      },
    ],
  },
  // 交易管理
  {
    path: '/trade',
    name: 'trade',
    component: () => import('/@/layouts/layoutMenu.vue'),
    children: [
      // 交易管理
      {
        path: 'list',
        name: 'trade-list',
        component: () => import('/@/views/main/exchange/trade/list.vue'),
      },
      // 售后管理
      {
        path: 'after-sales-service-list',
        name: 'trade-after-sales-service-list',
        component: () => import('/@/views/main/exchange/trade/afterList.vue'),
      },
      // 查看详情
      {
        path: 'order-details/:orderId',
        name: 'order-details',
        component: () => import('/@/views/main/exchange/trade/order-details.vue'),
      },
    ],
  },
  // 账户明细
  {
    path: '/account-detail',
    name: 'account-detail',
    component: () => import('/@/layouts/layoutMenu.vue'),
    redirect: '/account-detail/list',
    children: [
      {
        path: 'list',
        name: 'account-detail-list',
        component: () => import('/@/views/main/exchange/accountDetail/list.vue'),
      },
    ],
  },
  // 会话
  {
    path: '/chat',
    name: 'chat',
    component: () => import('/@/layouts/layoutMenu.vue'),
    redirect: '/chat/index',
    children: [
      {
        path: 'index',
        name: 'chat-index',
        component: () => import('/@/views/main/exchange/chat/index.vue'),
      },
    ],
  },
  // 数据产品管理
  {
    path: '/data-product',
    name: 'data-product',
    component: () => import('/@/layouts/layoutMenu.vue'),
    redirect: '/data-product/list',
    children: [
      // 列表
      {
        path: 'list',
        name: 'data-product-list',
        component: () => import('/@/views/main/exchange/dataProduct/list.vue'),
      },
      // 新增
      {
        path: 'add',
        name: 'data-product-add',
        component: () => import('/@/views/main/exchange/dataProduct/add.vue'),
      },
      // 详情
      {
        path: 'detail',
        name: 'data-product-detail',
        component: () => import('/@/views/main/exchange/dataProduct/detail.vue'),
      },
      // 数据详情
      {
        path: 'data-detail',
        name: 'data-product-data-detail',
        component: () => import('/@/views/main/exchange/dataProduct/dataDetail.vue'),
      },
      // 待审核列表
      {
        path: 'uncheck-list',
        name: 'data-product-uncheck-list',
        component: () => import('/@/views/main/exchange/dataProduct/uncheckList.vue'),
      },
      // 待审核详情
      {
        path: 'uncheck-detail',
        name: 'data-product-uncheck-detail',
        component: () => import('/@/views/main/exchange/dataProduct/uncheckDetail.vue'),
      },
      // 待审核数据详情
      {
        path: 'uncheck-data-detail',
        name: 'data-product-uncheck-data-detail',
        component: () => import('/@/views/main/exchange/dataProduct/uncheckDataDetail.vue'),
      },
    ],
  },
  // 交易所账户管理
  {
    path: '/account',
    name: 'account',
    component: () => import('/@/layouts/layoutMenu.vue'),
    children: [
      {
        path: 'list',
        name: 'account-list',
        component: () => import('/@/views/main/exchange/account/list.vue'),
      },
      {
        path: 'edit',
        name: 'account-edit',
        component: () => import('/@/views/main/exchange/account/edit.vue'),
      },
    ],
  },
  // 上市管理
  {
    path: '/lanuch',
    name: 'lanuch',
    component: () => import('/@/layouts/layoutMenu.vue'),
    children: [
      {
        path: 'list',
        name: 'lanuch-list',
        component: () => import('/@/views/main/exchange/lanuch/list.vue'),
      },
      {
        path: 'operate',
        name: 'lanuch-operate',
        component: () => import('/@/views/main/exchange/lanuch/operate.vue'),
      },
      {
        path: 'add',
        name: 'lanuch-add',
        component: () => import('/@/views/main/exchange/lanuch/add.vue'),
      },
    ],
  },
  // 机构认证
  {
    path: '/org-auth',
    name: 'org-auth',
    component: () => import('/@/layouts/layoutMenu.vue'),
    children: [
      {
        path: 'list',
        name: 'org-auth-list',
        component: () => import('/@/views/main/exchange/orgAuth/list.vue'),
      },
      {
        path: 'detail',
        name: 'org-auth-detail',
        component: () => import('/@/views/main/exchange/orgAuth/detail.vue'),
      },
    ],
  },
  // 上链溯源
  {
    path: '/chain-tracing',
    name: 'chain-tracing',
    component: () => import('/@/layouts/layoutMenu.vue'),
    children: [
      // 存证上链
      {
        path: 'evidence-on-chain',
        name: 'chain-tracing-evidence-on-chain',
        children: [
          {
            path: 'list',
            name: 'chain-tracing-evidence-on-chain-list',
            component: () => import('/@/views/main/exchange/chainTracing/evidenceOnChain/list.vue'),
          },
        ],
      },
      // 查证溯源
      {
        path: 'chain-verification',
        name: 'chain-tracing-chain-verification',
        children: [
          {
            path: 'list',
            name: 'chain-tracing-chain-verification-list',
            component: () => import('/@/views/main/exchange/chainTracing/chainVerification/list.vue'),
          },
        ],
      },
    ],
  },
  // 信息收集
  {
    path: '/info-collect',
    name: 'info-collect',
    component: () => import('/@/layouts/layoutMenu.vue'),
    children: [
      {
        path: 'list',
        name: 'info-collect-list',
        component: () => import('/@/views/main/exchange/infoCollect/list.vue'),
      },
    ],
  },
]
